package com.example.b_308.software.model.base;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by B-308 on 2017/11/16.
 */
public class BaseCompany extends BaseModel{
    String id;
    String name;
    String address;
    String telephone;
    String scale;//企业规模
    String create_time;
    List<Department> departments;

    public void setId(String id) {
        put("id", id);
        this.id = id;
    }

    public void setName(String name) {
        put("name", name);
        this.name = name;
    }

    public void setAddress(String address) {
        put("address", address);
        this.address = address;
    }

    public void setTelephone(String telephone) {
        put("telephone", telephone);
        this.telephone = telephone;
    }

    public void setScale(String scale) {
        put("scale", scale);
        this.scale = scale;
    }

    public void setCreate_time(String create_time) {
        put("create_time", create_time);
        this.create_time = create_time;
    }

    public void setDepartments(List<Department> departments) {
        put("departments", departments);
        this.departments = departments;
    }

    public String getId() {
        if (null == id) {
            this.id = get("id");
        }
        return id;
    }

    public String getName() {
        if (null == name) {
            this.name = get("name");
        }
        return name;
    }

    public String getAddress() {
        if (null == address) {
            this.address = get("address");
        }
        return address;
    }

    public String getTelephone() {
        if (null == telephone) {
            this.telephone = get("telephone");
        }
        return telephone;
    }

    public String getScale() {
        if (null == scale) {
            this.scale = get("scale");
        }
        return scale;
    }

    public String getCreate_time() {
        if (null == create_time) {
            this.create_time = get("create_time");
        }
        return create_time;
    }

    public List<Department> getDepartments() {
        if (null == departments) {
            this.departments = get("departments");
        }
        return departments;
    }
}
